<?php

class HomeController extends Controller {
	
	public function indexAction()
	{
		return $this->render(array(
			'param1' => 'hello 1',
			'param2' => 'hello 2',
		), 'index', 'layout');
		
		//return " TEST";
	}
	
	public function testAction()
	{
		try{
			
			$query = "SELECT * FROM users";
			$db = App::db();
			
			$result = $db -> executeAllTotal($query);
			var_dump($result);
		}
		catch(Exception $ex)
		{
			echo "error:" . $ex;
			var_dump($ex);
		}	
	}
}